#ifndef Question_H
#define Question_H

#include <QtGui>
#include <QString>


#include "..\Manager.h"
#include "AssetData.h"
#include "Response.h"
#include "IQuestion.h"

namespace XpsAssets
{

	class Question : public AssetData, public IQuestion
	{

	private:
		QString				m_Text;
		int					m_ChoiceMode;
		/// id list of responses
		QList<int>			m_data;

	public:
		Question(void) : AssetData(XpsAssets::QUESTION) { setChoiceMode(0); };
		~Question(void) { };
		
		// set/get
		QString	text() { return m_Text; };
		void setText(QString text) { m_Text = text; };

		/// returns choicemode of the question
		int choiceMode() { return m_ChoiceMode; };

		/// sets choicemode of the question
		void setChoiceMode(int cm) { m_ChoiceMode = cm; };

		/// returns a pointer to the list of responses
		QList<int>* responses() { return &m_data; };

		QString	toString() { return QString("%1").arg(text()); };

	};
}

#endif

